#pragma once

#include "Resource.h"
#include "ModelessDialog.h"

// MainDemoLauncher dialog

class MainDemoLauncherDlg : public CModelessDialog, public L_Observer
{
	DECLARE_DYNAMIC(MainDemoLauncherDlg)

public:
	MainDemoLauncherDlg(CWnd* pParent = NULL);   // standard constructor
	virtual ~MainDemoLauncherDlg();

	virtual BOOL Create(CWnd *pParentWnd = CWnd::FromHandle(L_GetMainWnd()));

// Dialog Data
	enum { IDD = IDD_MAINDEMOLAUNCHERDLG };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()

protected:
// L_Observer
	virtual void HandleMessage(L_Message const *pMsg);

private:
	//control
	CEdit m_StatusEdit;

	//control helpers
	void UpdateStatus();

protected:
	virtual BOOL OnInitDialog();
	virtual void OnOK() {}
	virtual void OnCancel() {}
	afx_msg void OnClose();
	afx_msg void OnBnClickedAccountDemo();
	afx_msg void OnBnClickedSummaryDemo();
	afx_msg void OnBnClickedPositionDemo();
	afx_msg void OnBnClickedOrderDemo();
	afx_msg void OnBnClickedOrderEntryView();
	afx_msg void OnBnClickedFullQuoteView();
	afx_msg void OnBnClickedCancelCloseDemo();
	afx_msg void OnBnClickedChartPointsView();
	afx_msg void OnBnClickedShortLimitView();
	afx_msg void OnBnClickedPairCalcMainView();
};
